package com.bot.backend.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        /**
         * 资源映射路径
         * addResourceHandler：访问映射路径
         * addResourceLocations：资源绝对路径
         * TODO 上传服务器改地址
         */
//        registry.addResourceHandler("/image/**").addResourceLocations("file:\\D:\\ruoyi\\uploadPath\\uploadPdf\\");
        registry.addResourceHandler("/image/**").addResourceLocations("file:/C:/Users/吴思豪/Desktop/");
    }

}